﻿<Window x:Class="Netfraction.SettingsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Settings" Height="408" Width="460" ResizeMode="NoResize" ShowInTaskbar="True">
    <Grid>
        <TabControl Margin="0,0,0,36" Name="tabControl1">
            <TabItem Header="General" IsSelected="True">
                <StackPanel>
                    <GroupBox Header="Personal Information" Height="140" Width="400" Margin="5">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="110*" />
                                <ColumnDefinition Width="275*" />
                            </Grid.ColumnDefinitions>
                            <TextBox Grid.Column="1" Grid.Row="0" Name="IdentityNameTextBox" Height="23" />
                            <TextBox Grid.Column="1" Grid.Row="1" Name="IdentityEmailTextBox" Height="23" />
                            <TextBox Grid.Column="1" Grid.Row="2" Name="IdentityDescriptionTextBox" Height="23" />
                            <ComboBox Grid.Column="1" Grid.Row="3" Width="60" Height="23" HorizontalAlignment="Left" Name="IdentityConnectionSpeedComboBox">
                                <ComboBoxItem>10</ComboBoxItem>
                                <ComboBoxItem>100</ComboBoxItem>
                                <ComboBoxItem>1000</ComboBoxItem>
                            </ComboBox>
                            <Label Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Margin="63,0,0,0" Height="23">Mbit/s</Label>
                            <Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Name:</Label>
                            <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Email:</Label>
                            <Label Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Description:</Label>
                            <Label Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Connection:</Label>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Connection" Height="83" Width="400" Margin="5">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="110*" />
                                <ColumnDefinition Width="275*" />
                            </Grid.ColumnDefinitions>
                            <TextBox Grid.Column="1" Grid.Row="0" Name="HubAddressTextBox" Height="23" />
                            <Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Hub Address:</Label>

                            <TextBox Grid.Column="1" Grid.Row="1" Name="GatewayIPTextBox" Height="23" />
                            <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Gateway IP:</Label>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Downloads" Height="55" Width="400" Margin="5">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="110*" />
                                <ColumnDefinition Width="195*" />
                                <ColumnDefinition Width="80*" />
                            </Grid.ColumnDefinitions>
                            <Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="0,0,5,0" Height="23">Download Folder:</Label>
                            <TextBox Grid.Column="1" Grid.Row="0" Name="DownloadFolderTextBox" Height="23" />
                            <Button Grid.Column="2" Grid.Row="0" HorizontalAlignment="Right" Name="BrowseFolderTextBox" Height="23" Width="75" Content="Browse..." Click="BrowseFolderTextBox_Click" />
                        </Grid>
                    </GroupBox>
                </StackPanel>
            </TabItem>
            <TabItem Header="Appearance" IsSelected="True">
                <GroupBox Header="Chat" Height="250" Width="400" Margin="5">
                    <Grid DataContext="SettingsWindowClass">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                            <RowDefinition Height="28" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="140*" />
                            <ColumnDefinition Width="40*" />
                            <ColumnDefinition Width="245*" />
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">Message Text:</Label>
                        <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">My Text:</Label>
                        <Label Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">User Names:</Label>
                        <Label Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">My Name:</Label>
                        <Label Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">Operator Names:</Label>
                        <Label Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">Url Text:</Label>
                        <Label Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">Timestamp:</Label>
                        <Label Grid.Column="0" Grid.Row="7" HorizontalAlignment="Right" Margin="0,0,5,0" Height="28">Timestamp Format:</Label>
                        <Rectangle Grid.Column="1" Grid.Row="0" Name="MessageTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="1" Name="MyTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="2" Name="NickTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="3" Name="MyNickTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="4" Name="OperatorNickTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="5" Name="UrlTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle Grid.Column="1" Grid.Row="6" Name="TimestampTextColourRect" RadiusX="5" RadiusY="5" Stroke="Black" HorizontalAlignment="Left" Width="25" Height="25">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="White" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="7" Name="TimestampFormatTextBox" Width="80" Height="23" HorizontalAlignment="Left" />
                        <Button Grid.Column="2" Grid.Row="0" Width="75" Height="23" HorizontalAlignment="Left" Name="MessageTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="1" Width="75" Height="23" HorizontalAlignment="Left" Name="MyTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="2" Width="75" Height="23" HorizontalAlignment="Left" Name="NickTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="3" Width="75" Height="23" HorizontalAlignment="Left" Name="MyNickTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="4" Width="75" Height="23" HorizontalAlignment="Left" Name="OperatorNickTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="5" Width="75" Height="23" HorizontalAlignment="Left" Name="UrlTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                        <Button Grid.Column="2" Grid.Row="6" Width="75" Height="23" HorizontalAlignment="Left" Name="TimestampTextColourButton" Click="SelectColourButton_Click">Select...</Button>
                    </Grid>
                </GroupBox>
            </TabItem>
        </TabControl>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,109,9" Name="OKButton" VerticalAlignment="Bottom" Width="75" Click="OKButton_Click">OK</Button>
        <Button Height="23" HorizontalAlignment="Left" Margin="102.352,0,0,9" Name="CancelButton" VerticalAlignment="Bottom" Width="75">Cancel</Button>
    </Grid>
</Window>
